package com.rinlink.jbcodec.transform;

import java.nio.ByteBuffer;

public class BytesToBooleanList extends BytesToList<Boolean> {
    public BytesToBooleanList(ByteBuffer byteBuffer, int listSize) {
        super(byteBuffer, listSize);
    }

    @Override
    protected Boolean transform(ByteBuffer buffer) {
        return buffer.get() == 0 ? false : true;
    }
}
